/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package general;

import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

/**
 *
 * @author SISTEMAS
 */
@Entity
@Table(name = "perm100", catalog = "netlabV2", schema = "")
@NamedQueries({
    @NamedQuery(name = "Perm100.findAll", query = "SELECT p FROM Perm100 p"),
    @NamedQuery(name = "Perm100.findByPerm100nocia", query = "SELECT p FROM Perm100 p WHERE p.perm100nocia = :perm100nocia"),
    @NamedQuery(name = "Perm100.findByPerm100cdgo", query = "SELECT p FROM Perm100 p WHERE p.perm100cdgo = :perm100cdgo"),
    @NamedQuery(name = "Perm100.findByPgr100cdgo", query = "SELECT p FROM Perm100 p WHERE p.pgr100cdgo = :pgr100cdgo"),
    @NamedQuery(name = "Perm100.findByRol100cdgo", query = "SELECT p FROM Perm100 p WHERE p.rol100cdgo = :rol100cdgo"),
    @NamedQuery(name = "Perm100.findByPerm100load", query = "SELECT p FROM Perm100 p WHERE p.perm100load = :perm100load"),
    @NamedQuery(name = "Perm100.findByPerm100fead", query = "SELECT p FROM Perm100 p WHERE p.perm100fead = :perm100fead"),
    @NamedQuery(name = "Perm100.findByPerm100lomo", query = "SELECT p FROM Perm100 p WHERE p.perm100lomo = :perm100lomo"),
    @NamedQuery(name = "Perm100.findByPerm100femo", query = "SELECT p FROM Perm100 p WHERE p.perm100femo = :perm100femo")})
public class Perm100 implements Serializable {
    @Transient
    private PropertyChangeSupport changeSupport = new PropertyChangeSupport(this);
    private static final long serialVersionUID = 1L;
    @Column(name = "perm100nocia")
    private String perm100nocia;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "perm100cdgo")
    private Integer perm100cdgo;
    @Basic(optional = false)
    @Column(name = "pgr100cdgo")
    private String pgr100cdgo;
    @Basic(optional = false)
    @Column(name = "rol100cdgo")
    private String rol100cdgo;
    @Column(name = "perm100load")
    private String perm100load;
    @Column(name = "perm100fead")
    @Temporal(TemporalType.DATE)
    private Date perm100fead;
    @Column(name = "perm100lomo")
    private String perm100lomo;
    @Column(name = "perm100femo")
    @Temporal(TemporalType.DATE)
    private Date perm100femo;

    public Perm100() {
    }

    public Perm100(Integer perm100cdgo) {
        this.perm100cdgo = perm100cdgo;
    }

    public Perm100(Integer perm100cdgo, String pgr100cdgo, String rol100cdgo) {
        this.perm100cdgo = perm100cdgo;
        this.pgr100cdgo = pgr100cdgo;
        this.rol100cdgo = rol100cdgo;
    }

    public String getPerm100nocia() {
        return perm100nocia;
    }

    public void setPerm100nocia(String perm100nocia) {
        String oldPerm100nocia = this.perm100nocia;
        this.perm100nocia = perm100nocia;
        changeSupport.firePropertyChange("perm100nocia", oldPerm100nocia, perm100nocia);
    }

    public Integer getPerm100cdgo() {
        return perm100cdgo;
    }

    public void setPerm100cdgo(Integer perm100cdgo) {
        Integer oldPerm100cdgo = this.perm100cdgo;
        this.perm100cdgo = perm100cdgo;
        changeSupport.firePropertyChange("perm100cdgo", oldPerm100cdgo, perm100cdgo);
    }

    public String getPgr100cdgo() {
        return pgr100cdgo;
    }

    public void setPgr100cdgo(String pgr100cdgo) {
        String oldPgr100cdgo = this.pgr100cdgo;
        this.pgr100cdgo = pgr100cdgo;
        changeSupport.firePropertyChange("pgr100cdgo", oldPgr100cdgo, pgr100cdgo);
    }

    public String getRol100cdgo() {
        return rol100cdgo;
    }

    public void setRol100cdgo(String rol100cdgo) {
        String oldRol100cdgo = this.rol100cdgo;
        this.rol100cdgo = rol100cdgo;
        changeSupport.firePropertyChange("rol100cdgo", oldRol100cdgo, rol100cdgo);
    }

    public String getPerm100load() {
        return perm100load;
    }

    public void setPerm100load(String perm100load) {
        String oldPerm100load = this.perm100load;
        this.perm100load = perm100load;
        changeSupport.firePropertyChange("perm100load", oldPerm100load, perm100load);
    }

    public Date getPerm100fead() {
        return perm100fead;
    }

    public void setPerm100fead(Date perm100fead) {
        Date oldPerm100fead = this.perm100fead;
        this.perm100fead = perm100fead;
        changeSupport.firePropertyChange("perm100fead", oldPerm100fead, perm100fead);
    }

    public String getPerm100lomo() {
        return perm100lomo;
    }

    public void setPerm100lomo(String perm100lomo) {
        String oldPerm100lomo = this.perm100lomo;
        this.perm100lomo = perm100lomo;
        changeSupport.firePropertyChange("perm100lomo", oldPerm100lomo, perm100lomo);
    }

    public Date getPerm100femo() {
        return perm100femo;
    }

    public void setPerm100femo(Date perm100femo) {
        Date oldPerm100femo = this.perm100femo;
        this.perm100femo = perm100femo;
        changeSupport.firePropertyChange("perm100femo", oldPerm100femo, perm100femo);
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (perm100cdgo != null ? perm100cdgo.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Perm100)) {
            return false;
        }
        Perm100 other = (Perm100) object;
        if ((this.perm100cdgo == null && other.perm100cdgo != null) || (this.perm100cdgo != null && !this.perm100cdgo.equals(other.perm100cdgo))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "permisos.Perm100[ perm100cdgo=" + perm100cdgo + " ]";
    }

    public void addPropertyChangeListener(PropertyChangeListener listener) {
        changeSupport.addPropertyChangeListener(listener);
    }

    public void removePropertyChangeListener(PropertyChangeListener listener) {
        changeSupport.removePropertyChangeListener(listener);
    }
    
}
